package com.mt.edu.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 类名称：Exercises2Question <br>
 * 类描述： 某套练习题中包含的试题<br>
 * 创建人： 马腾 <br>
 * 创建时间：Apr 28, 2014 10:28:20 PM <br>
 * 修改人： 马腾 <br>
 * 修改时间：Apr 28, 2014 10:28:20 PM <br>
 */
@Entity
@Table(name="OL_EXERCISES_QUESTION")
public class Exercises2Question implements Serializable {

	private static final long serialVersionUID = -9187582662218970119L;

	@Id
	@Column(name = "EQ_ID")
	private String id;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name = "EXERCISES_ID")
	private Exercises exercises;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name = "QUESTION_ID")
	private Question question;
	
	@Column(name = "CREATE_DT")
	private Date createDt;
	
	@Column(name = "OPERATOR")
	private String operator;
	
	@Column(name = "RESERVED1")
	private String reserved1;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Exercises getExercises() {
		return exercises;
	}

	public void setExercises(Exercises exercises) {
		this.exercises = exercises;
	}

	public Question getQuestion() {
		return question;
	}

	public void setQuestion(Question question) {
		this.question = question;
	}

	public Date getCreateDt() {
		return createDt;
	}

	public void setCreateDt(Date createDt) {
		this.createDt = createDt;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public String getReserved1() {
		return reserved1;
	}

	public void setReserved1(String reserved1) {
		this.reserved1 = reserved1;
	}
}
